/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  cn.hutool.core.collection.CollUtil
 *  cn.hutool.core.date.DateUtil
 *  cn.hutool.core.util.ObjectUtil
 *  cn.hutool.core.util.StrUtil
 *  com.alibaba.fastjson.JSON
 *  com.alibaba.fastjson.JSONObject
 *  de.felixroske.jfxsupport.FXMLController
 *  javafx.beans.value.ChangeListener
 *  javafx.beans.value.ObservableValue
 *  javafx.collections.FXCollections
 *  javafx.collections.ObservableList
 *  javafx.event.ActionEvent
 *  javafx.event.EventHandler
 *  javafx.fxml.FXML
 *  javafx.fxml.Initializable
 *  javafx.geometry.Insets
 *  javafx.scene.Node
 *  javafx.scene.control.Alert
 *  javafx.scene.control.Alert$AlertType
 *  javafx.scene.control.Button
 *  javafx.scene.control.CheckBox
 *  javafx.scene.control.ChoiceBox
 *  javafx.scene.control.ComboBox
 *  javafx.scene.control.DatePicker
 *  javafx.scene.control.Pagination
 *  javafx.scene.control.ScrollPane
 *  javafx.scene.control.TableCell
 *  javafx.scene.control.TableColumn
 *  javafx.scene.control.TableView
 *  javafx.scene.control.TextField
 *  javafx.scene.control.cell.PropertyValueFactory
 *  javafx.scene.input.KeyCode
 *  javafx.scene.input.KeyEvent
 *  javafx.scene.layout.HBox
 *  javafx.scene.layout.VBox
 *  javafx.scene.text.Text
 *  javafx.stage.Modality
 *  javafx.util.Callback
 *  javafx.util.StringConverter
 *  org.springframework.beans.factory.annotation.Autowired
 *  org.springframework.util.CollectionUtils
 */
package com.gys.controller.replenish;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gys.GysApplication;
import com.gys.common.business.ReplenishUtil;
import com.gys.common.business.SaleScheduleSettingUtil;
import com.gys.common.data.HttpJson;
import com.gys.common.data.PageInfo;
import com.gys.common.util.CacheUtil;
import com.gys.common.util.CommonUtil;
import com.gys.common.util.ConstUtil;
import com.gys.controller.BaseController;
import com.gys.controller.index.IndexController;
import com.gys.controller.replenish.AddReplenishController;
import com.gys.data.accept.GsdcEmp;
import com.gys.data.deviceCheck.GsdcStatus;
import com.gys.data.example.GetLoginStoreOutData;
import com.gys.data.example.GetUserOutData;
import com.gys.data.replenish.GetReplenishInData;
import com.gys.data.replenish.GetReplenishOutData;
import com.gys.data.saleScheduleSetting.GetSaleScheduleInData;
import com.gys.view.replenish.AddTypeView;
import com.gys.view.replenish.AddView;
import de.felixroske.jfxsupport.FXMLController;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.net.URL;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.scene.Node;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ChoiceBox;
import javafx.scene.control.ComboBox;
import javafx.scene.control.DatePicker;
import javafx.scene.control.Pagination;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextField;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Modality;
import javafx.util.Callback;
import javafx.util.StringConverter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;

@FXMLController
public class ReplenishController
extends BaseController
implements Initializable {
    private final int pageSize = ConstUtil.DEFAULT_PAGESIZE;
    private final int defaultPageCount = ConstUtil.DEFAULT_PAGECOUNT;
    private ObservableList<GetReplenishOutData> observableTableList = FXCollections.observableArrayList(new ArrayList());
    @FXML
    private ScrollPane scrollPane;
    @FXML
    private VBox vBox;
    @FXML
    private Button enterBtn;
    @FXML
    private Button approveBtn;
    @FXML
    private HBox queryHbox;
    @FXML
    private HBox queryHbox1;
    @FXML
    private HBox boxView;
    @FXML
    private TextField voucherIdQuery;
    @FXML
    private TextField amountQuery;
    @FXML
    private TextField countQuery;
    @FXML
    private TextField productCodeQuery;
    @FXML
    private ChoiceBox<GsdcEmp> acceptPeopleQuery;
    @FXML
    private ChoiceBox<GsdcStatus> statusQuery;
    @FXML
    private DatePicker replenishDateQuery;
    @FXML
    private TableView<GetReplenishOutData> tableView;
    @FXML
    private TableColumn<GetReplenishOutData, CheckBox> checkBox;
    @FXML
    private TableColumn<GetReplenishOutData, String> index;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhVoucherId;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhDate;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhType;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhTotalAmt;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhTotalQty;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhEmp;
    @FXML
    private TableColumn<GetReplenishOutData, String> gsrhStatus;
    @FXML
    private Pagination pagination;
    @FXML
    private Insets tableViewInsets;
    @Autowired
    private AddReplenishController addReplenishController;
    @Autowired
    private IndexController indexController;
    private String voucherId;
    List<GetUserOutData> outDataList = new ArrayList<GetUserOutData>();
    private ObservableList<String> empOptions;
    List<String> emps = new ArrayList<String>();
    Map<String, GetUserOutData> empsMap = new HashMap<String, GetUserOutData>();

    public void initialize(URL location, ResourceBundle resources) {
        this.scrollPane.setPrefWidth(this.getContentWidth());
        this.scrollPane.setPrefHeight(this.getContentHeight());
        this.vBox.setPrefWidth(this.getContentWidth());
        this.vBox.setPrefHeight(this.getContentHeight());
        this.tableView.setPrefWidth(this.getContentWidth());
        this.pagination.setPrefWidth(this.getContentWidth());
        this.statusQuery.getItems().addAll(this.getAllStatus());
        this.statusQuery.converterProperty().set(new StringConverter<GsdcStatus>(){

            public String toString(GsdcStatus object) {
                return object.getName();
            }

            public GsdcStatus fromString(String string) {
                return null;
            }
        });
        StringConverter converter = CommonUtil.dataPickerFormat("yyyyMMdd");
        this.replenishDateQuery.setConverter(converter);
        this.pagination.setPageFactory((Callback)new Callback<Integer, Node>(){

            public Node call(Integer pageNum) {
                return ReplenishController.this.initTable(pageNum);
            }
        });
        this.emps.clear();
        this.outDataList.clear();
        this.empsMap.clear();
        GetSaleScheduleInData inData = new GetSaleScheduleInData();
        inData.setClientId(((GetUserOutData)CacheUtil.get("logInUser")).getClient());
        inData.setGsegBrId(((GetLoginStoreOutData)CacheUtil.get("store")).getStoCode());
        HttpJson httpJson = SaleScheduleSettingUtil.queryUser(CommonUtil.convertToMap(inData));
        if (!httpJson.isSuccess()) {
            Alert alert = this.createAlert(Alert.AlertType.INFORMATION, "\u63d0\u793a\u4fe1\u606f", httpJson.getMsg());
            alert.showAndWait();
            return;
        }
        this.outDataList = JSON.parseArray((String)httpJson.getMsg(), GetUserOutData.class);
        ArrayList list = new ArrayList();
        this.outDataList.forEach(item -> {
            this.emps.add(item.getLoginName());
            this.empsMap.put(item.getLoginName(), (GetUserOutData)item);
            GsdcEmp emp = new GsdcEmp(item.getUserId(), item.getLoginName());
            list.add(emp);
        });
        this.empOptions = FXCollections.observableArrayList(this.emps);
        this.acceptPeopleQuery.getItems().addAll(list);
        this.acceptPeopleQuery.converterProperty().set(new StringConverter<GsdcEmp>(){

            public String toString(GsdcEmp object) {
                return object.getName();
            }

            public GsdcEmp fromString(String string) {
                return null;
            }
        });
        this.initColumCheckBox();
    }

    @Override
    public void init() {
        this.indexController.scrollContentPane.setOnKeyReleased((EventHandler)new EventHandler<KeyEvent>(){

            public void handle(KeyEvent event) {
                if (event.getCode() == KeyCode.F1) {
                    ReplenishController.this.openAdd();
                    return;
                }
                if (event.getCode() == KeyCode.F8) {
                    ReplenishController.this.approve();
                    return;
                }
                if (event.getCode() == KeyCode.F3) {
                    ReplenishController.this.see();
                    return;
                }
                if (event.getCode() == KeyCode.ENTER) {
                    ReplenishController.this.searchData();
                }
            }
        });
    }

    @FXML
    private void searchData() {
        Alert alert = this.createAlert(Alert.AlertType.INFORMATION, "\u63d0\u793a\u4fe1\u606f", null);
        if (StrUtil.isBlank((CharSequence)this.voucherIdQuery.getText().trim()) && ObjectUtil.isNull(this.statusQuery.getValue()) && ObjectUtil.isNull(this.acceptPeopleQuery.getValue()) && StrUtil.isBlank((CharSequence)this.productCodeQuery.getText().trim()) && ObjectUtil.isNull(this.replenishDateQuery.getValue()) && StrUtil.isBlank((CharSequence)this.amountQuery.getText().trim()) && StrUtil.isBlank((CharSequence)this.countQuery.getText().trim())) {
            alert.setContentText("\u5fc5\u987b\u81f3\u5c11\u586b\u5199\u4e00\u9879\u5185\u5bb9\u8fdb\u884c\u67e5\u8be2\uff01");
            alert.showAndWait();
            return;
        }
        this.initTable(0);
        this.pagination.setCurrentPageIndex(0);
    }

    @FXML
    private void reset() {
        this.voucherIdQuery.clear();
        this.amountQuery.clear();
        this.countQuery.clear();
        this.acceptPeopleQuery.setValue(null);
        this.productCodeQuery.clear();
        this.statusQuery.setValue(null);
        this.replenishDateQuery.setValue(null);
    }

    @FXML
    private void openAdd() {
        this.voucherId = "";
        GysApplication.showView(AddTypeView.class, (Modality)Modality.APPLICATION_MODAL);
    }

    @FXML
    private void see() {
        if (ObjectUtil.isEmpty(this.getSelectIndex())) {
            Alert alert = this.createAlert(Alert.AlertType.INFORMATION, "\u63d0\u793a\u4fe1\u606f", "\u8bf7\u9009\u62e9\u4e00\u4e2a\u8865\u8d27\u5355\uff01");
            alert.showAndWait();
            return;
        }
        this.voucherId = ((GetReplenishOutData)this.observableTableList.get(this.getSelectIndex().get(0) - 1)).getGsrhVoucherId();
        this.addReplenishController.init();
        GysApplication.showView(AddView.class, (Modality)Modality.APPLICATION_MODAL);
    }

    @FXML
    private void approve() {
        Alert alert = this.createAlert(Alert.AlertType.INFORMATION, "\u63d0\u793a\u4fe1\u606f", null);
        List<Integer> indexList = this.getSelectIndex();
        if (ObjectUtil.isEmpty(indexList)) {
            alert.setContentText("\u8bf7\u9009\u62e9\u8bb0\u5f55");
            alert.showAndWait();
            return;
        }
        GetReplenishInData inData = new GetReplenishInData();
        for (Integer index : indexList) {
            GetReplenishOutData outData = (GetReplenishOutData)this.observableTableList.get(index - 1);
            if (ObjectUtil.isEmpty(outData.getGsrhEmp())) {
                alert.setContentText("\u8bf7\u9009\u62e9\u8865\u8d27\u4eba\u5458");
                alert.showAndWait();
                return;
            }
            inData.setGsrhVoucherId(outData.getGsrhVoucherId());
            inData.setGsrhEmp(this.empsMap.get(outData.getGsrhEmp()).getUserId());
        }
        HttpJson rsp = ReplenishUtil.approve(inData);
        if (rsp.isSuccess()) {
            alert.setContentText("\u5ba1\u6838\u6210\u529f!");
            alert.showAndWait();
            this.initTable(this.pagination.getCurrentPageIndex());
        } else {
            alert.setContentText(rsp.getMsg());
            alert.showAndWait();
        }
    }

    public TableView<GetReplenishOutData> initTable(int pageNum) {
        List<GetReplenishOutData> dataList;
        PageInfo pageInfo;
        HttpJson rsp;
        GetReplenishInData inData = new GetReplenishInData();
        inData.setPageNum(pageNum + 1);
        inData.setPageSize(this.pageSize);
        if (ObjectUtil.isNotEmpty(this.voucherIdQuery.getText().trim())) {
            inData.setGsrhVoucherId(this.voucherIdQuery.getText().trim());
        }
        if (ObjectUtil.isNotEmpty(this.amountQuery.getText().trim())) {
            inData.setGsrhTotalAmt(new BigDecimal(this.amountQuery.getText().trim()));
        }
        if (ObjectUtil.isNotEmpty(this.countQuery.getText().trim())) {
            inData.setGsrhTotalQty(this.countQuery.getText().trim());
        }
        if (ObjectUtil.isNotNull(this.statusQuery.getValue())) {
            inData.setGsrhStatus(((GsdcStatus)this.statusQuery.getValue()).getCode());
        }
        if (ObjectUtil.isNotNull(this.acceptPeopleQuery.getValue())) {
            inData.setGsrhEmp(((GsdcEmp)this.acceptPeopleQuery.getValue()).getCode());
        }
        if (ObjectUtil.isNotEmpty(this.productCodeQuery.getText().trim())) {
            inData.setProductCode(this.productCodeQuery.getText().trim());
        }
        if (ObjectUtil.isNotNull(this.replenishDateQuery.getValue())) {
            inData.setGsrhDate(DateUtil.format((Date)DateUtil.parse((String)((LocalDate)this.replenishDateQuery.getValue()).toString()), (String)"yyyyMMdd"));
        }
        if ((rsp = ReplenishUtil.selectList(inData)).isSuccess()) {
            pageInfo = (PageInfo)JSON.parseObject((String)rsp.getMsg(), PageInfo.class);
            if (pageInfo != null && CollUtil.isNotEmpty(pageInfo.getList())) {
                ArrayList<GetReplenishOutData> listTemp = new ArrayList<GetReplenishOutData>();
                for (int i = 0; i < pageInfo.getList().size(); ++i) {
                    String str = JSONObject.toJSONString(pageInfo.getList().get(i));
                    GetReplenishOutData outData = (GetReplenishOutData)JSONObject.parseObject((String)str, GetReplenishOutData.class);
                    if ("1".equals(outData.getGsrhStatus())) {
                        outData.setGsrhStatus("\u5df2\u5ba1\u6838");
                    } else {
                        outData.setGsrhStatus("\u672a\u5ba1\u6838");
                    }
                    if ("1".equals(outData.getGsrhType())) {
                        outData.setGsrhType("\u914d\u9001");
                    } else {
                        outData.setGsrhType("\u5355\u91c7");
                    }
                    outData.setIndex(i + 1);
                    listTemp.add(outData);
                }
                pageInfo.setList(listTemp);
            }
        } else {
            Alert alert = this.createAlert(Alert.AlertType.INFORMATION, "\u63d0\u793a\u4fe1\u606f", rsp.getMsg());
            alert.showAndWait();
            return new TableView();
        }
        if (pageInfo != null && CollUtil.isNotEmpty(pageInfo.getList())) {
            this.pagination.setPageCount(pageInfo.getPages());
            dataList = pageInfo.getList();
        } else {
            this.pagination.setPageCount(this.defaultPageCount);
            dataList = new ArrayList();
        }
        this.observableTableList.clear();
        this.observableTableList = FXCollections.observableArrayList(dataList);
        this.bingTableCell();
        this.tableView.setItems(this.observableTableList);
        return this.tableView;
    }

    private void bingTableCell() {
        this.index.setCellValueFactory((Callback)new PropertyValueFactory(this.index.getId()));
        this.checkBox.setCellValueFactory(cellData -> ((GetReplenishOutData)cellData.getValue()).getCheckBox().getCustomCheckBox());
        this.checkBox.setCellFactory(col -> {
            TableCell<GetReplenishOutData, CheckBox> cell = new TableCell<GetReplenishOutData, CheckBox>(){

                protected void updateItem(CheckBox item, boolean empty) {
                    super.updateItem(item, empty);
                    this.setGraphic((Node)item);
                    if (item != null) {
                        item.setOnMouseClicked(col -> {
                            if (CollUtil.isEmpty((Collection)ReplenishController.this.observableTableList)) {
                                return;
                            }
                            int index = this.getIndex();
                            for (int i = 0; i < ReplenishController.this.observableTableList.size(); ++i) {
                                if (i == index) continue;
                                ((GetReplenishOutData)ReplenishController.this.observableTableList.get(i)).getCheckBox().setSelectStatus(false);
                            }
                            if (((GetReplenishOutData)ReplenishController.this.observableTableList.get(index)).getCheckBox().isSelected().booleanValue()) {
                                if ("\u672a\u5ba1\u6838".equals(((GetReplenishOutData)ReplenishController.this.observableTableList.get(index)).getGsrhStatus())) {
                                    ReplenishController.this.tableView.setEditable(true);
                                    ReplenishController.this.approveBtn.setDisable(false);
                                    ReplenishController.this.gsegChangeToComBoxEdit((TableColumn<GetReplenishOutData, String>)ReplenishController.this.gsrhEmp, (ObservableList<String>)ReplenishController.this.empOptions);
                                } else {
                                    ReplenishController.this.tableView.setEditable(false);
                                    ReplenishController.this.approveBtn.setDisable(true);
                                    ReplenishController.this.clearComBoxEdit((TableColumn<GetReplenishOutData, String>)ReplenishController.this.gsrhEmp, (ObservableList<String>)ReplenishController.this.empOptions);
                                }
                            }
                        });
                    }
                }
            };
            return cell;
        });
        this.gsrhVoucherId.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhVoucherId.getId()));
        this.gsrhDate.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhDate.getId()));
        this.gsrhType.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhType.getId()));
        this.gsrhTotalAmt.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhTotalAmt.getId()));
        this.gsrhTotalQty.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhTotalQty.getId()));
        this.gsrhEmp.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhEmp.getId()));
        this.gsrhStatus.setCellValueFactory((Callback)new PropertyValueFactory(this.gsrhStatus.getId()));
    }

    public void initColumCheckBox() {
        this.tableView.getSelectionModel().selectedItemProperty().addListener((ChangeListener)new ChangeListener<GetReplenishOutData>(){

            public void changed(ObservableValue<? extends GetReplenishOutData> observable, GetReplenishOutData oldValue, GetReplenishOutData newValue) {
                if (CollUtil.isEmpty((Collection)ReplenishController.this.observableTableList)) {
                    return;
                }
                for (int i = 0; i < ReplenishController.this.observableTableList.size(); ++i) {
                    if (i == newValue.getIndex() - 1) {
                        ((GetReplenishOutData)ReplenishController.this.observableTableList.get(i)).getCheckBox().setSelectStatus(true);
                    } else {
                        ((GetReplenishOutData)ReplenishController.this.observableTableList.get(i)).getCheckBox().setSelectStatus(false);
                    }
                    if (!((GetReplenishOutData)ReplenishController.this.observableTableList.get(i)).getCheckBox().isSelected().booleanValue()) continue;
                    if ("\u672a\u5ba1\u6838".equals(((GetReplenishOutData)ReplenishController.this.observableTableList.get(i)).getGsrhStatus())) {
                        ReplenishController.this.tableView.setEditable(true);
                        ReplenishController.this.approveBtn.setDisable(false);
                        ReplenishController.this.gsegChangeToComBoxEdit((TableColumn<GetReplenishOutData, String>)ReplenishController.this.gsrhEmp, (ObservableList<String>)ReplenishController.this.empOptions);
                        continue;
                    }
                    ReplenishController.this.tableView.setEditable(false);
                    ReplenishController.this.approveBtn.setDisable(true);
                    ReplenishController.this.clearComBoxEdit((TableColumn<GetReplenishOutData, String>)ReplenishController.this.gsrhEmp, (ObservableList<String>)ReplenishController.this.empOptions);
                }
            }
        });
    }

    public void clearComBoxEdit(TableColumn<GetReplenishOutData, String> column, ObservableList<String> options) {
        column.setCellFactory(tc -> {
            TableCell<GetReplenishOutData, String> cell = new TableCell<GetReplenishOutData, String>(){

                protected void updateItem(String chuzhi, boolean empty) {
                    super.updateItem(chuzhi, empty);
                    if (empty) {
                        this.setGraphic(null);
                    } else {
                        Text text = new Text();
                        text.setText(chuzhi);
                        this.setGraphic((Node)text);
                    }
                }
            };
            return cell;
        });
    }

    public void gsegChangeToComBoxEdit(TableColumn<GetReplenishOutData, String> column, ObservableList<String> options) {
        column.setCellFactory(tc -> {
            final ComboBox combo = new ComboBox();
            combo.setItems(options);
            combo.setEditable(false);
            combo.setMinHeight(30.0);
            TableCell<GetReplenishOutData, String> cell = new TableCell<GetReplenishOutData, String>(){

                protected void updateItem(String chuzhi, boolean empty) {
                    super.updateItem(chuzhi, empty);
                    if (empty) {
                        this.setGraphic(null);
                    } else {
                        List indexList = ReplenishController.this.getSelectIndex();
                        if (indexList.contains(this.getIndex() + 1)) {
                            combo.setValue(chuzhi);
                            this.setGraphic((Node)combo);
                        } else {
                            Text text = new Text();
                            text.setText(chuzhi);
                            this.setGraphic((Node)text);
                        }
                    }
                }
            };
            combo.setOnAction(arg_0 -> this.lambda$null$4((TableCell)cell, combo, (ActionEvent) arg_0));
            return cell;
        });
    }

    private List<GsdcStatus> getAllStatus() {
        ArrayList<GsdcStatus> list = new ArrayList<GsdcStatus>();
        list.add(new GsdcStatus("1", "\u5df2\u5ba1\u6838"));
        list.add(new GsdcStatus("0", "\u672a\u5ba1\u6838"));
        return list;
    }

    private List<Integer> getSelectIndex() {
        ArrayList<Integer> ids = new ArrayList<Integer>();
        if (!CollectionUtils.isEmpty(this.observableTableList)) {
            for (GetReplenishOutData i : this.observableTableList) {
                if (!i.getCheckBox().isSelected().booleanValue()) continue;
                ids.add(i.getIndex());
            }
        }
        return ids;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public int getDefaultPageCount() {
        return this.defaultPageCount;
    }

    public ObservableList<GetReplenishOutData> getObservableTableList() {
        return this.observableTableList;
    }

    public ScrollPane getScrollPane() {
        return this.scrollPane;
    }

    public VBox getVBox() {
        return this.vBox;
    }

    public Button getEnterBtn() {
        return this.enterBtn;
    }

    public Button getApproveBtn() {
        return this.approveBtn;
    }

    public HBox getQueryHbox() {
        return this.queryHbox;
    }

    public HBox getQueryHbox1() {
        return this.queryHbox1;
    }

    public HBox getBoxView() {
        return this.boxView;
    }

    public TextField getVoucherIdQuery() {
        return this.voucherIdQuery;
    }

    public TextField getAmountQuery() {
        return this.amountQuery;
    }

    public TextField getCountQuery() {
        return this.countQuery;
    }

    public TextField getProductCodeQuery() {
        return this.productCodeQuery;
    }

    public ChoiceBox<GsdcEmp> getAcceptPeopleQuery() {
        return this.acceptPeopleQuery;
    }

    public ChoiceBox<GsdcStatus> getStatusQuery() {
        return this.statusQuery;
    }

    public DatePicker getReplenishDateQuery() {
        return this.replenishDateQuery;
    }

    public TableView<GetReplenishOutData> getTableView() {
        return this.tableView;
    }

    public TableColumn<GetReplenishOutData, CheckBox> getCheckBox() {
        return this.checkBox;
    }

    public TableColumn<GetReplenishOutData, String> getIndex() {
        return this.index;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhVoucherId() {
        return this.gsrhVoucherId;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhDate() {
        return this.gsrhDate;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhType() {
        return this.gsrhType;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhTotalAmt() {
        return this.gsrhTotalAmt;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhTotalQty() {
        return this.gsrhTotalQty;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhEmp() {
        return this.gsrhEmp;
    }

    public TableColumn<GetReplenishOutData, String> getGsrhStatus() {
        return this.gsrhStatus;
    }

    public Pagination getPagination() {
        return this.pagination;
    }

    public Insets getTableViewInsets() {
        return this.tableViewInsets;
    }

    public AddReplenishController getAddReplenishController() {
        return this.addReplenishController;
    }

    public IndexController getIndexController() {
        return this.indexController;
    }

    public String getVoucherId() {
        return this.voucherId;
    }

    public List<GetUserOutData> getOutDataList() {
        return this.outDataList;
    }

    public ObservableList<String> getEmpOptions() {
        return this.empOptions;
    }

    public List<String> getEmps() {
        return this.emps;
    }

    public Map<String, GetUserOutData> getEmpsMap() {
        return this.empsMap;
    }

    public void setObservableTableList(ObservableList<GetReplenishOutData> observableTableList) {
        this.observableTableList = observableTableList;
    }

    public void setScrollPane(ScrollPane scrollPane) {
        this.scrollPane = scrollPane;
    }

    public void setVBox(VBox vBox) {
        this.vBox = vBox;
    }

    public void setEnterBtn(Button enterBtn) {
        this.enterBtn = enterBtn;
    }

    public void setApproveBtn(Button approveBtn) {
        this.approveBtn = approveBtn;
    }

    public void setQueryHbox(HBox queryHbox) {
        this.queryHbox = queryHbox;
    }

    public void setQueryHbox1(HBox queryHbox1) {
        this.queryHbox1 = queryHbox1;
    }

    public void setBoxView(HBox boxView) {
        this.boxView = boxView;
    }

    public void setVoucherIdQuery(TextField voucherIdQuery) {
        this.voucherIdQuery = voucherIdQuery;
    }

    public void setAmountQuery(TextField amountQuery) {
        this.amountQuery = amountQuery;
    }

    public void setCountQuery(TextField countQuery) {
        this.countQuery = countQuery;
    }

    public void setProductCodeQuery(TextField productCodeQuery) {
        this.productCodeQuery = productCodeQuery;
    }

    public void setAcceptPeopleQuery(ChoiceBox<GsdcEmp> acceptPeopleQuery) {
        this.acceptPeopleQuery = acceptPeopleQuery;
    }

    public void setStatusQuery(ChoiceBox<GsdcStatus> statusQuery) {
        this.statusQuery = statusQuery;
    }

    public void setReplenishDateQuery(DatePicker replenishDateQuery) {
        this.replenishDateQuery = replenishDateQuery;
    }

    public void setTableView(TableView<GetReplenishOutData> tableView) {
        this.tableView = tableView;
    }

    public void setCheckBox(TableColumn<GetReplenishOutData, CheckBox> checkBox) {
        this.checkBox = checkBox;
    }

    public void setIndex(TableColumn<GetReplenishOutData, String> index) {
        this.index = index;
    }

    public void setGsrhVoucherId(TableColumn<GetReplenishOutData, String> gsrhVoucherId) {
        this.gsrhVoucherId = gsrhVoucherId;
    }

    public void setGsrhDate(TableColumn<GetReplenishOutData, String> gsrhDate) {
        this.gsrhDate = gsrhDate;
    }

    public void setGsrhType(TableColumn<GetReplenishOutData, String> gsrhType) {
        this.gsrhType = gsrhType;
    }

    public void setGsrhTotalAmt(TableColumn<GetReplenishOutData, String> gsrhTotalAmt) {
        this.gsrhTotalAmt = gsrhTotalAmt;
    }

    public void setGsrhTotalQty(TableColumn<GetReplenishOutData, String> gsrhTotalQty) {
        this.gsrhTotalQty = gsrhTotalQty;
    }

    public void setGsrhEmp(TableColumn<GetReplenishOutData, String> gsrhEmp) {
        this.gsrhEmp = gsrhEmp;
    }

    public void setGsrhStatus(TableColumn<GetReplenishOutData, String> gsrhStatus) {
        this.gsrhStatus = gsrhStatus;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    public void setTableViewInsets(Insets tableViewInsets) {
        this.tableViewInsets = tableViewInsets;
    }

    public void setAddReplenishController(AddReplenishController addReplenishController) {
        this.addReplenishController = addReplenishController;
    }

    public void setIndexController(IndexController indexController) {
        this.indexController = indexController;
    }

    public void setVoucherId(String voucherId) {
        this.voucherId = voucherId;
    }

    public void setOutDataList(List<GetUserOutData> outDataList) {
        this.outDataList = outDataList;
    }

    public void setEmpOptions(ObservableList<String> empOptions) {
        this.empOptions = empOptions;
    }

    public void setEmps(List<String> emps) {
        this.emps = emps;
    }

    public void setEmpsMap(Map<String, GetUserOutData> empsMap) {
        this.empsMap = empsMap;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof ReplenishController)) {
            return false;
        }
        ReplenishController other = (ReplenishController)o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (this.getPageSize() != other.getPageSize()) {
            return false;
        }
        if (this.getDefaultPageCount() != other.getDefaultPageCount()) {
            return false;
        }
        ObservableList<GetReplenishOutData> this$observableTableList = this.getObservableTableList();
        ObservableList<GetReplenishOutData> other$observableTableList = other.getObservableTableList();
        if (this$observableTableList == null ? other$observableTableList != null : !this$observableTableList.equals(other$observableTableList)) {
            return false;
        }
        ScrollPane this$scrollPane = this.getScrollPane();
        ScrollPane other$scrollPane = other.getScrollPane();
        if (this$scrollPane == null ? other$scrollPane != null : !this$scrollPane.equals(other$scrollPane)) {
            return false;
        }
        VBox this$vBox = this.getVBox();
        VBox other$vBox = other.getVBox();
        if (this$vBox == null ? other$vBox != null : !this$vBox.equals(other$vBox)) {
            return false;
        }
        Button this$enterBtn = this.getEnterBtn();
        Button other$enterBtn = other.getEnterBtn();
        if (this$enterBtn == null ? other$enterBtn != null : !this$enterBtn.equals(other$enterBtn)) {
            return false;
        }
        Button this$approveBtn = this.getApproveBtn();
        Button other$approveBtn = other.getApproveBtn();
        if (this$approveBtn == null ? other$approveBtn != null : !this$approveBtn.equals(other$approveBtn)) {
            return false;
        }
        HBox this$queryHbox = this.getQueryHbox();
        HBox other$queryHbox = other.getQueryHbox();
        if (this$queryHbox == null ? other$queryHbox != null : !this$queryHbox.equals(other$queryHbox)) {
            return false;
        }
        HBox this$queryHbox1 = this.getQueryHbox1();
        HBox other$queryHbox1 = other.getQueryHbox1();
        if (this$queryHbox1 == null ? other$queryHbox1 != null : !this$queryHbox1.equals(other$queryHbox1)) {
            return false;
        }
        HBox this$boxView = this.getBoxView();
        HBox other$boxView = other.getBoxView();
        if (this$boxView == null ? other$boxView != null : !this$boxView.equals(other$boxView)) {
            return false;
        }
        TextField this$voucherIdQuery = this.getVoucherIdQuery();
        TextField other$voucherIdQuery = other.getVoucherIdQuery();
        if (this$voucherIdQuery == null ? other$voucherIdQuery != null : !this$voucherIdQuery.equals(other$voucherIdQuery)) {
            return false;
        }
        TextField this$amountQuery = this.getAmountQuery();
        TextField other$amountQuery = other.getAmountQuery();
        if (this$amountQuery == null ? other$amountQuery != null : !this$amountQuery.equals(other$amountQuery)) {
            return false;
        }
        TextField this$countQuery = this.getCountQuery();
        TextField other$countQuery = other.getCountQuery();
        if (this$countQuery == null ? other$countQuery != null : !this$countQuery.equals(other$countQuery)) {
            return false;
        }
        TextField this$productCodeQuery = this.getProductCodeQuery();
        TextField other$productCodeQuery = other.getProductCodeQuery();
        if (this$productCodeQuery == null ? other$productCodeQuery != null : !this$productCodeQuery.equals(other$productCodeQuery)) {
            return false;
        }
        ChoiceBox<GsdcEmp> this$acceptPeopleQuery = this.getAcceptPeopleQuery();
        ChoiceBox<GsdcEmp> other$acceptPeopleQuery = other.getAcceptPeopleQuery();
        if (this$acceptPeopleQuery == null ? other$acceptPeopleQuery != null : !this$acceptPeopleQuery.equals(other$acceptPeopleQuery)) {
            return false;
        }
        ChoiceBox<GsdcStatus> this$statusQuery = this.getStatusQuery();
        ChoiceBox<GsdcStatus> other$statusQuery = other.getStatusQuery();
        if (this$statusQuery == null ? other$statusQuery != null : !this$statusQuery.equals(other$statusQuery)) {
            return false;
        }
        DatePicker this$replenishDateQuery = this.getReplenishDateQuery();
        DatePicker other$replenishDateQuery = other.getReplenishDateQuery();
        if (this$replenishDateQuery == null ? other$replenishDateQuery != null : !this$replenishDateQuery.equals(other$replenishDateQuery)) {
            return false;
        }
        TableView<GetReplenishOutData> this$tableView = this.getTableView();
        TableView<GetReplenishOutData> other$tableView = other.getTableView();
        if (this$tableView == null ? other$tableView != null : !this$tableView.equals(other$tableView)) {
            return false;
        }
        TableColumn<GetReplenishOutData, CheckBox> this$checkBox = this.getCheckBox();
        TableColumn<GetReplenishOutData, CheckBox> other$checkBox = other.getCheckBox();
        if (this$checkBox == null ? other$checkBox != null : !this$checkBox.equals(other$checkBox)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$index = this.getIndex();
        TableColumn<GetReplenishOutData, String> other$index = other.getIndex();
        if (this$index == null ? other$index != null : !this$index.equals(other$index)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhVoucherId = this.getGsrhVoucherId();
        TableColumn<GetReplenishOutData, String> other$gsrhVoucherId = other.getGsrhVoucherId();
        if (this$gsrhVoucherId == null ? other$gsrhVoucherId != null : !this$gsrhVoucherId.equals(other$gsrhVoucherId)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhDate = this.getGsrhDate();
        TableColumn<GetReplenishOutData, String> other$gsrhDate = other.getGsrhDate();
        if (this$gsrhDate == null ? other$gsrhDate != null : !this$gsrhDate.equals(other$gsrhDate)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhType = this.getGsrhType();
        TableColumn<GetReplenishOutData, String> other$gsrhType = other.getGsrhType();
        if (this$gsrhType == null ? other$gsrhType != null : !this$gsrhType.equals(other$gsrhType)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhTotalAmt = this.getGsrhTotalAmt();
        TableColumn<GetReplenishOutData, String> other$gsrhTotalAmt = other.getGsrhTotalAmt();
        if (this$gsrhTotalAmt == null ? other$gsrhTotalAmt != null : !this$gsrhTotalAmt.equals(other$gsrhTotalAmt)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhTotalQty = this.getGsrhTotalQty();
        TableColumn<GetReplenishOutData, String> other$gsrhTotalQty = other.getGsrhTotalQty();
        if (this$gsrhTotalQty == null ? other$gsrhTotalQty != null : !this$gsrhTotalQty.equals(other$gsrhTotalQty)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhEmp = this.getGsrhEmp();
        TableColumn<GetReplenishOutData, String> other$gsrhEmp = other.getGsrhEmp();
        if (this$gsrhEmp == null ? other$gsrhEmp != null : !this$gsrhEmp.equals(other$gsrhEmp)) {
            return false;
        }
        TableColumn<GetReplenishOutData, String> this$gsrhStatus = this.getGsrhStatus();
        TableColumn<GetReplenishOutData, String> other$gsrhStatus = other.getGsrhStatus();
        if (this$gsrhStatus == null ? other$gsrhStatus != null : !this$gsrhStatus.equals(other$gsrhStatus)) {
            return false;
        }
        Pagination this$pagination = this.getPagination();
        Pagination other$pagination = other.getPagination();
        if (this$pagination == null ? other$pagination != null : !this$pagination.equals(other$pagination)) {
            return false;
        }
        Insets this$tableViewInsets = this.getTableViewInsets();
        Insets other$tableViewInsets = other.getTableViewInsets();
        if (this$tableViewInsets == null ? other$tableViewInsets != null : !this$tableViewInsets.equals(other$tableViewInsets)) {
            return false;
        }
        AddReplenishController this$addReplenishController = this.getAddReplenishController();
        AddReplenishController other$addReplenishController = other.getAddReplenishController();
        if (this$addReplenishController == null ? other$addReplenishController != null : !(this$addReplenishController).equals(other$addReplenishController)) {
            return false;
        }
        IndexController this$indexController = this.getIndexController();
        IndexController other$indexController = other.getIndexController();
        if (this$indexController == null ? other$indexController != null : !(this$indexController).equals(other$indexController)) {
            return false;
        }
        String this$voucherId = this.getVoucherId();
        String other$voucherId = other.getVoucherId();
        if (this$voucherId == null ? other$voucherId != null : !this$voucherId.equals(other$voucherId)) {
            return false;
        }
        List<GetUserOutData> this$outDataList = this.getOutDataList();
        List<GetUserOutData> other$outDataList = other.getOutDataList();
        if (this$outDataList == null ? other$outDataList != null : !(this$outDataList).equals(other$outDataList)) {
            return false;
        }
        ObservableList<String> this$empOptions = this.getEmpOptions();
        ObservableList<String> other$empOptions = other.getEmpOptions();
        if (this$empOptions == null ? other$empOptions != null : !this$empOptions.equals(other$empOptions)) {
            return false;
        }
        List<String> this$emps = this.getEmps();
        List<String> other$emps = other.getEmps();
        if (this$emps == null ? other$emps != null : !(this$emps).equals(other$emps)) {
            return false;
        }
        Map<String, GetUserOutData> this$empsMap = this.getEmpsMap();
        Map<String, GetUserOutData> other$empsMap = other.getEmpsMap();
        return !(this$empsMap == null ? other$empsMap != null : !(this$empsMap).equals(other$empsMap));
    }

    protected boolean canEqual(Object other) {
        return other instanceof ReplenishController;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        result = result * 59 + this.getPageSize();
        result = result * 59 + this.getDefaultPageCount();
        ObservableList<GetReplenishOutData> $observableTableList = this.getObservableTableList();
        result = result * 59 + ($observableTableList == null ? 43 : $observableTableList.hashCode());
        ScrollPane $scrollPane = this.getScrollPane();
        result = result * 59 + ($scrollPane == null ? 43 : $scrollPane.hashCode());
        VBox $vBox = this.getVBox();
        result = result * 59 + ($vBox == null ? 43 : $vBox.hashCode());
        Button $enterBtn = this.getEnterBtn();
        result = result * 59 + ($enterBtn == null ? 43 : $enterBtn.hashCode());
        Button $approveBtn = this.getApproveBtn();
        result = result * 59 + ($approveBtn == null ? 43 : $approveBtn.hashCode());
        HBox $queryHbox = this.getQueryHbox();
        result = result * 59 + ($queryHbox == null ? 43 : $queryHbox.hashCode());
        HBox $queryHbox1 = this.getQueryHbox1();
        result = result * 59 + ($queryHbox1 == null ? 43 : $queryHbox1.hashCode());
        HBox $boxView = this.getBoxView();
        result = result * 59 + ($boxView == null ? 43 : $boxView.hashCode());
        TextField $voucherIdQuery = this.getVoucherIdQuery();
        result = result * 59 + ($voucherIdQuery == null ? 43 : $voucherIdQuery.hashCode());
        TextField $amountQuery = this.getAmountQuery();
        result = result * 59 + ($amountQuery == null ? 43 : $amountQuery.hashCode());
        TextField $countQuery = this.getCountQuery();
        result = result * 59 + ($countQuery == null ? 43 : $countQuery.hashCode());
        TextField $productCodeQuery = this.getProductCodeQuery();
        result = result * 59 + ($productCodeQuery == null ? 43 : $productCodeQuery.hashCode());
        ChoiceBox<GsdcEmp> $acceptPeopleQuery = this.getAcceptPeopleQuery();
        result = result * 59 + ($acceptPeopleQuery == null ? 43 : $acceptPeopleQuery.hashCode());
        ChoiceBox<GsdcStatus> $statusQuery = this.getStatusQuery();
        result = result * 59 + ($statusQuery == null ? 43 : $statusQuery.hashCode());
        DatePicker $replenishDateQuery = this.getReplenishDateQuery();
        result = result * 59 + ($replenishDateQuery == null ? 43 : $replenishDateQuery.hashCode());
        TableView<GetReplenishOutData> $tableView = this.getTableView();
        result = result * 59 + ($tableView == null ? 43 : $tableView.hashCode());
        TableColumn<GetReplenishOutData, CheckBox> $checkBox = this.getCheckBox();
        result = result * 59 + ($checkBox == null ? 43 : $checkBox.hashCode());
        TableColumn<GetReplenishOutData, String> $index = this.getIndex();
        result = result * 59 + ($index == null ? 43 : $index.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhVoucherId = this.getGsrhVoucherId();
        result = result * 59 + ($gsrhVoucherId == null ? 43 : $gsrhVoucherId.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhDate = this.getGsrhDate();
        result = result * 59 + ($gsrhDate == null ? 43 : $gsrhDate.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhType = this.getGsrhType();
        result = result * 59 + ($gsrhType == null ? 43 : $gsrhType.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhTotalAmt = this.getGsrhTotalAmt();
        result = result * 59 + ($gsrhTotalAmt == null ? 43 : $gsrhTotalAmt.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhTotalQty = this.getGsrhTotalQty();
        result = result * 59 + ($gsrhTotalQty == null ? 43 : $gsrhTotalQty.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhEmp = this.getGsrhEmp();
        result = result * 59 + ($gsrhEmp == null ? 43 : $gsrhEmp.hashCode());
        TableColumn<GetReplenishOutData, String> $gsrhStatus = this.getGsrhStatus();
        result = result * 59 + ($gsrhStatus == null ? 43 : $gsrhStatus.hashCode());
        Pagination $pagination = this.getPagination();
        result = result * 59 + ($pagination == null ? 43 : $pagination.hashCode());
        Insets $tableViewInsets = this.getTableViewInsets();
        result = result * 59 + ($tableViewInsets == null ? 43 : $tableViewInsets.hashCode());
        AddReplenishController $addReplenishController = this.getAddReplenishController();
        result = result * 59 + ($addReplenishController == null ? 43 : ($addReplenishController).hashCode());
        IndexController $indexController = this.getIndexController();
        result = result * 59 + ($indexController == null ? 43 : ($indexController).hashCode());
        String $voucherId = this.getVoucherId();
        result = result * 59 + ($voucherId == null ? 43 : $voucherId.hashCode());
        List<GetUserOutData> $outDataList = this.getOutDataList();
        result = result * 59 + ($outDataList == null ? 43 : ($outDataList).hashCode());
        ObservableList<String> $empOptions = this.getEmpOptions();
        result = result * 59 + ($empOptions == null ? 43 : $empOptions.hashCode());
        List<String> $emps = this.getEmps();
        result = result * 59 + ($emps == null ? 43 : ($emps).hashCode());
        Map<String, GetUserOutData> $empsMap = this.getEmpsMap();
        result = result * 59 + ($empsMap == null ? 43 : ($empsMap).hashCode());
        return result;
    }

    public String toString() {
        return "ReplenishController(pageSize=" + this.getPageSize() + ", defaultPageCount=" + this.getDefaultPageCount() + ", observableTableList=" + this.getObservableTableList() + ", scrollPane=" + this.getScrollPane() + ", vBox=" + this.getVBox() + ", enterBtn=" + this.getEnterBtn() + ", approveBtn=" + this.getApproveBtn() + ", queryHbox=" + this.getQueryHbox() + ", queryHbox1=" + this.getQueryHbox1() + ", boxView=" + this.getBoxView() + ", voucherIdQuery=" + this.getVoucherIdQuery() + ", amountQuery=" + this.getAmountQuery() + ", countQuery=" + this.getCountQuery() + ", productCodeQuery=" + this.getProductCodeQuery() + ", acceptPeopleQuery=" + this.getAcceptPeopleQuery() + ", statusQuery=" + this.getStatusQuery() + ", replenishDateQuery=" + this.getReplenishDateQuery() + ", tableView=" + this.getTableView() + ", checkBox=" + this.getCheckBox() + ", index=" + this.getIndex() + ", gsrhVoucherId=" + this.getGsrhVoucherId() + ", gsrhDate=" + this.getGsrhDate() + ", gsrhType=" + this.getGsrhType() + ", gsrhTotalAmt=" + this.getGsrhTotalAmt() + ", gsrhTotalQty=" + this.getGsrhTotalQty() + ", gsrhEmp=" + this.getGsrhEmp() + ", gsrhStatus=" + this.getGsrhStatus() + ", pagination=" + this.getPagination() + ", tableViewInsets=" + this.getTableViewInsets() + ", addReplenishController=" + this.getAddReplenishController() + ", indexController=" + this.getIndexController() + ", voucherId=" + this.getVoucherId() + ", outDataList=" + this.getOutDataList() + ", empOptions=" + this.getEmpOptions() + ", emps=" + this.getEmps() + ", empsMap=" + this.getEmpsMap() + ")";
    }

    private void lambda$null$4(TableCell cell, ComboBox combo, ActionEvent e) {
        int rank = cell.getIndex();
        String cloumName = cell.getId();
        String value = (String)combo.getValue();
        GetReplenishOutData outData = (GetReplenishOutData)this.observableTableList.get(rank);
        String methodName = CommonUtil.getSetMethod(cloumName);
        try {
            Method method = GetReplenishOutData.class.getMethod(methodName, String.class);
            method.invoke(outData, value);
        }
        catch (Exception ex) {
            throw new RuntimeException("\u6ca1\u6709\u65b9\u6cd5" + methodName);
        }
    }
}

